package com.fgba.express.data.dto;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fgba.express.core.dto.BaseDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 快递Dto
 * </p>
 *
 * @author fgba
 * @since 2022-02-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "ExpressDto对象", description = "快递Dto")
@JsonInclude(value = JsonInclude.Include.NON_EMPTY)
public class ExpressDto extends BaseDto {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "快递编号")
    private String number;

    @ApiModelProperty(value = "收件人姓名")
    private String recipient;

    @ApiModelProperty(value = "快递员ID（外键）")
    private Integer courierId;

    @ApiModelProperty(value = "快递员姓名")
    private String courierName;

    @ApiModelProperty(value = "取件码")
    private String code;

    @ApiModelProperty(value = "快递公司，该值参考快递公司表")
    private String company;

    @ApiModelProperty(value = "是否取件")
    private Boolean expressState;

    @ApiModelProperty(value = "入库时间")
    private LocalDateTime inTime;

    @ApiModelProperty(value = "出库时间")
    private LocalDateTime outTime;

    @ApiModelProperty(value = "入库时间条件，0为开始时间，1为结束时间")
    private List<LocalDateTime> inTimes;

    @ApiModelProperty(value = "出库时间条件，0为开始时间，1为结束时间")
    private List<LocalDateTime> outTimes;
}
